package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.reggie.domain.Dish;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Sea
 * @date 2023/3/5 16:35
 */
@Service
public interface DishService {
    Page<Dish> findByPage(Integer pageNum, Integer pageSize, String name);

    void save(Dish dish);

    Dish findById(Long dishId);

    void updateDish(Dish dish);

    void updateStatus(Integer status, List<Long> ids);


    void deleteDish(List<Long> ids);

    List<Dish> findListBySetmeal(Long categroyId, String name);

    List<Dish> list(Long categoryId, Integer status);
}
